package com.emperor.service.impl;

import com.emperor.mapper.ReportMapper;
import com.emperor.service.ReportService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.time.LocalDateTime;

@Service
public class ReportServiceImpl implements ReportService {
    @Autowired
    private ReportMapper reportMapper;

    @Override
    public Integer orderCount(LocalDateTime start, LocalDateTime end) {

        return reportMapper.orderCount(start, end);
    }

    @Override
    public Integer orderAmount(LocalDateTime start, LocalDateTime end) {
        return reportMapper.orderCount(start, end);
    }
}
